-
Notifications
You must be signed in to change notification settings - Fork 684
Added new 'jerry_value_instanceof' API function. #2723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new 'jerry_value_instanceof' API function. #2723
Conversation
|
||
**Summary** | ||
|
||
Returns whether the given `jerry_value_t` is an instance of the given prototype. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there any difference between the es5.1 vs es2015 instanceof
internal workings? Could that affect the api workings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not affect the api workings, but may affect the internal workings (e.g.: instance of classes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Classes are simple functions, the only specializations they have is a bytecode status flag, so I think it couldn't have any affect on it.
48a1077
to
6e31e64
Compare
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
6e31e64
to
c1bddc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (informal)
Closing PR to prevent merging. Let's discuss and make decision on #2746 first. |
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]